package com.dabai.iot.core.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 产品查询实体类
 *
 * @author kev1n
 */
@Data
public class ProductQuery implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(description = "租户编号")
    private String tenantId;

    /**
     * 产品名称
     */
    @Schema(description = "产品名称")
    private String productName;

    /**
     * 通信协议
     */
    @Schema(description = "通信协议")
    private String protocol;

    /**
     * 数据格式 1:JSON 2:Plaintext
     */
    @Schema(description = "数据格式 1:JSON 2:Plaintext")
    private String dataType;

    /**
     * 安全类型 1:一型一密 2:一机一密
     */
    @Schema(description = "安全类型 1:一型一密 2:一机一密")
    private String securityType;

    /**
     * 连网方式
     */
    @Schema(description = "连网方式")
    private String connectType;

}
